﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Ebusiness_ProductService.Migrations
{
    /// <inheritdoc />
    public partial class project2 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "ConcurrencyStamp",
                table: "Product",
                type: "varchar(40)",
                maxLength: 40,
                nullable: false,
                defaultValue: "")
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<string>(
                name: "ExtraProperties",
                table: "Product",
                type: "longtext",
                nullable: false)
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<double>(
                name: "Geo_Latitude",
                table: "Product",
                type: "double",
                nullable: false,
                defaultValue: 0.0);

            migrationBuilder.AddColumn<double>(
                name: "Geo_Longitude",
                table: "Product",
                type: "double",
                nullable: false,
                defaultValue: 0.0);

            migrationBuilder.AddColumn<int>(
                name: "geoType",
                table: "Product",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ConcurrencyStamp",
                table: "Product");

            migrationBuilder.DropColumn(
                name: "ExtraProperties",
                table: "Product");

            migrationBuilder.DropColumn(
                name: "Geo_Latitude",
                table: "Product");

            migrationBuilder.DropColumn(
                name: "Geo_Longitude",
                table: "Product");

            migrationBuilder.DropColumn(
                name: "geoType",
                table: "Product");
        }
    }
}
